#include "MooLanguage.h"

MooLanguage * _mooLanguage = 0;

MooLanguage * MooLanguage::getInstance() {
    if (_mooLanguage) {
        return _mooLanguage;
    }

    _mooLanguage = new MooLanguage();

    return _mooLanguage;
}

// 设置输入字符集
void MooLanguage::setInEncode(encode charset) {
    MooLanguage::getInstance()->_inCharset = charset;
}

// 设置输出字符集
void MooLanguage::setOutEncode(encode charset) {
    MooLanguage::getInstance()->_outCharset = charset;
}
